<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <h:outputStylesheet name="./css/default.css"/>
        <h:outputStylesheet name="./css/cssLayout.css"/>
        <title>Sistema de Seguridad Notarial - Helena</title>
    </h:head>

    <h:body>

        <div id="top">
            <ui:insert name="top">
                <div align="right"><h:outputText value="#{notariaBean.objSeleccionado.notario}" /></div>
                <div align="right"><h:outputText value="#{notariaBean.objSeleccionado.notaria}" /></div>
                <BR/>
                <p:panel id="menuPanel" style=" border: 0; ">
                    <div id="menu" >
                        <h:form>
                            <p:menubar>  
                                <p:submenu label="Escrituras" >  
                                    <p:menuitem value="Detalles" url="/faces/detEscrituras.xhtml" />  
                                    <p:menuitem value="Maestras" url="/faces/maeEscrituras.xhtml" />  
                                </p:submenu>


                                <p:submenu label="Maestros" >  
                                    <p:menuitem value="Tipos de Documento" url="/faces/s/maestros/tiposDocumento.xhtml" disabled="true"/>  
                                </p:submenu>

                                <p:submenu label="Preferencias" >  
                                    <p:menuitem value="Festivos" url="#" disabled="true"/>  
                                    <p:menuitem value="Operadores" url="#" disabled="true"/>  
                                    <p:separator />
                                    <p:menuitem value="Actualizar Base de Datos" url="/faces/actualizarSQL.xhtml"/>  
                                </p:submenu>

                                <p:submenu icon="ui-icon-help">  
                                    <p:menuitem value="Acerca de..." url="#" />  
                                </p:submenu>

                            </p:menubar>
                        </h:form>
                    </div>
                </p:panel>

            </ui:insert>
        </div>
        <div>
            <div id="left">
                <ui:insert name="left">
                    <!--Inicio--> 
                    <!--                        
                            Barra de Herramientas
                    -->
                    <h:form>
                        <h:panelGrid columns="1"> 
                            <p:panel >  
                                <h:commandLink id="insertButton" 
                                               onclick="PF('dialogInsert').show();
                                                       return false;" type="button"> 
                                    <h:graphicImage library="img" name="icons/addFolder.ico" width="32px;"/>
                                </h:commandLink>  

                                <p:separator/>

                                <h:commandLink>  
                                    <h:graphicImage library="img" name="icons/excel.png" width="32px;"/>
                                    <p:dataExporter type="xls" target=":formDataTable:dataTable" fileName="sofia" />  
                                </h:commandLink>  

                                <p:separator/>

                                <h:commandLink>  
                                    <h:graphicImage library="img" name="icons/pdf.png" width="32px;"/>
                                    <p:dataExporter type="pdf" target=":formDataTable:dataTable" fileName="sofia"/>  
                                </h:commandLink>  

                                <p:separator/>

                                <h:commandLink>  
                                    <h:graphicImage library="img" name="icons/csv.png" width="32px;"/>
                                    <p:dataExporter type="csv" target=":formDataTable:dataTable" fileName="sofia" />  
                                </h:commandLink>  

                            </p:panel>  
                        </h:panelGrid>
                    </h:form>

                    <!--Fin-->

                </ui:insert>
            </div>
            <div>
                <!--                <div id="right">
                                    <ui:insert name="right">Right</ui:insert>
                                </div>-->
                <div id="content" class="right_content">
                    <ui:insert name="content">Content</ui:insert>
                </div>
            </div>
        </div>
        <div id="bottom">
            <ui:insert name="bottom">
                <div align="right"><h:outputText value="#{notariaBean.objSeleccionado.direccion} - #{notariaBean.objSeleccionado.telefono}" /></div>              
                <div align="right">  &copy;2015, Corporación Conasinf Ltda. Helena 2.15.312 - 4660504</div></ui:insert>
        </div>

    </h:body>

</html>
